/**
 * Created with JetBrains WebStorm.
 * User: Administrator
 * Date: 13-6-5
 * Time: 下午3:55
 * To change this template use File | Settings | File Templates.
 */
/**
 * Demonstrates a range of Button options the framework offers out of the box
 */
Ext.define('cloud.view.call.callEdit', {
    extend: 'Ext.form.FormPanel',
    xtype: 'calledit',

    requires: ['Ext.form.Panel', 'Ext.form.FieldSet','Ext.field.Toggle','Ext.field.Select','Ext.ux.Fileup', 'Ext.Img','Ext.dataview.DataView'],
    config: {
        title: '编辑呼叫信息',
        items: [
            {
                xtype: 'toolbar',
                docked: 'bottom',
                layout: {
                    type: 'hbox',
                    pack: 'end'
                },
                items: [
                    {
                        id: 'calledit_edit',
                        iconMask: true,
                        scope: this,
                        text: '更新',
                        style: 'float:right',
                        cls:'x-button2'
                    },
                   {
                        id: 'calledit_del',
                        iconMask: true,
                        scope: this,
                        text: '删除',
                        style: 'float:right',
                        cls:'x-button2'
                    }
                ]
            },
            {
                xtype: 'fieldset',
               // id :'fieldset',

                defaults: {
                    labelwidth: '20%',
                    xtype: 'textfield',
                    required: true,
                    clearIcon: true
                },
                items: [
                    {
                        id: 'calledit_cdcid',
                        name: 'cdcid',
                        label: 'ID',
                        maxLength: 50,
                        placeHolder: 'ID' ,
                        readOnly:true,
                        hidden:true
                    },
                    {
                        id: 'calledit_name',
                        name: 'name',
                        label: '名称',
                        maxLength: 50,
                        placeHolder: '请输名称'
                    },
                    {
                        id: 'calledit_tel',
                        name: 'number',
                        label: '电话',
                        maxLength: 50,
                        placeHolder: '电话'
                    },{
                        id: 'calledit_address',
                        name: 'explain',
                        label: '说明',
                        maxLength: 50,
                        placeHolder: '说明'
                    }

                ]
            }
        ]
    }
});